package org.pro.Model;

import java.awt.*;

public class River  extends Element{

    public long serialVersionUID = 3L;

    transient DrawInterface drawInterface;
    public River(int x,int y)//做出
    {
        this.x=(double)x;
        this.y=(double)y;
        this.width = 42;  // 示例尺寸
        this.height = 34;
    }

    public interface DrawInterface {
        void draw(River var1, Graphics2D var2);
    }
    public void draw(Graphics2D g, Object panel) {
        this.drawInterface = (DrawInterface)panel;
        this.drawInterface.draw(this, g);
    }

}
